<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            width: 3000px;
            height: 3000px;
        }
    </style>
</head>
<body>
    <script>
        //获取浏览器 可视窗口的尺寸 
        console.log('宽',window.innerWidth);
        console.log('高',window.innerHeight);

        // 获取到的是包含滚动条 
    </script>
</body>
</html>